import { Pipe, PipeTransform } from '@angular/core';

/**
 * 发送节点 sendType
 * 1:审核后发送、2:定时发送、3:登录后发送
 */
@Pipe({ name: 'sendTypeStatus' })
export class SendTypeStatusPipe implements PipeTransform {
  transform(value: any, exponent?: any): any {
    switch (value) {
      case 1:
        return '审核后发送';
      case 2:
        return '定时发送';
      case 3:
        return '登录后发送';
      default:
        return '-';
    }
  }
}

